package com.farseer810.service;

import java.util.*;
import com.farseer810.dao.ClassDao;
import com.farseer810.exception.ClassNameExistsException;
import com.farseer810.model.Class;

public class ClassService {
	private ClassService() {
	}
	
	public static void addClass(String name) throws ClassNameExistsException, Exception {
		ClassDao.addClass(name);
	}
	
	public static boolean isClassNameExists(String name) throws Exception {
		return ClassDao.isClassNameExist(name);
	}
	
	public static List<Class> getClassList() throws Exception {
		return ClassDao.getClassList();
	}
}
